package com.shujia.wyh.day08;

/*
    替换功能
    public StringBuffer replace(int start,int end,String str)

    反转功能
    public StringBuffer reverse()


 */
public class StringBufferDemo3 {
    public static void main(String[] args) {
        StringBuffer sb = new StringBuffer("helloWorldJavaHadoop");

//        sb.replace(5,10,"今天天气还好");
//        System.out.println(sb);
        sb.reverse();
        System.out.println(sb);

    }
}
